# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=zenity
pkgver=3.44.2
pkgrel=1
pkgdesc="Display dialog boxes from the command line and shell scripts"
url="https://wiki.gnome.org/Projects/Zenity"
arch="all"
license="GPL-2.0-or-later"
makedepends="
	gtk+3.0-dev
	intltool
	itstool
	libnotify-dev
	libxml2-utils
	meson
	"
options="!check" # no tests
subpackages="$pkgname-lang $pkgname-doc"
source="https://download.gnome.org/sources/zenity/${pkgver%.*}/zenity-$pkgver.tar.xz"

build() {
	abuild-meson \
		-Db_lto=true \
		-Dlibnotify=true \
		. output
	meson compile -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
60f139b18db9ddf95a9c3481b08a3b99dd56ce457a49d99dc33f59570837e8498e8819bdd130c915a08e40042b2f3af583bd0fe4498adb8152632bd044137f2f  zenity-3.44.2.tar.xz
"
